package com.evil.account.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 第三方系统用户表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@TableName(value = "evil_third_system_user")
public class ThirdSystemUser implements Serializable {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 第三方系统id
     */
    @TableField(value = "open_id")
    private String openId;

    /**
     * 系统用户唯一标识
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 第三方系统类型(1:企业微信)
     */
    @TableField(value = "third_system_type")
    private Integer thirdSystemType;

    /**
     * 第三方系统昵称
     */
    @TableField(value = "third_nick_name")
    private String thirdNickName;

    /**
     * 第三方系统手机号
     */
    @TableField(value = "third_tel")
    private String thirdTel;

    /**
     * 是否已删除(0:否, 1:是)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 修改操作人
     */
    @TableField(value = "modifier_id")
    private Long modifierId;

    /**
     * 修改操作人名字
     */
    @TableField(value = "modifier_name")
    private String modifierName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_OPEN_ID = "open_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_THIRD_SYSTEM_TYPE = "third_system_type";

    public static final String COL_THIRD_NICK_NAME = "third_nick_name";

    public static final String COL_THIRD_TEL = "third_tel";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR_NAME = "creator_name";

    public static final String COL_MODIFIER_ID = "modifier_id";

    public static final String COL_MODIFIER_NAME = "modifier_name";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}